﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TUDifier_2
{
    public partial class SelectionDialog : Form
    {
        string firstSelectionText, secondSelectionText;
        public int selection = 0;
        public SelectionDialog(string firstSelectionText, string secondSelectionText)
        {
            InitializeComponent();
            this.firstRadioButton.Text = firstSelectionText;
            this.secondRadioButton.Text = secondSelectionText;
            
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;

            if (firstRadioButton.Checked)
                selection = 1;
            else
                selection = 2;
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }


    }
}
